package com.service;

import com.pojo.Vip;
import com.pojo.Vipaccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VipService {
    //    查询所有vip
    List<Vip> vipFindAll();

    //    搜索
    List<Vip> vipFindLike(Integer vid,String vname,String grade);

    //会员注册
    int vipInsert(Vip vip);
    int vipaccountInsert(Vipaccount vipaccount);

    //    会员编辑
    int vipupdate(Vip vip);

    //    会员删除
    int vipDelete(Integer vid);
    int vipaccountDelete(Integer vid);

    List<Vip> vipSelectVid(Integer vid);
    List<Vip> vipSelectPhone(String vid);

    int vipUpdintegral(Integer vid,Integer integral,String grade);
}
